<template>
  <div>
    <Body>
      <div slot="header">
        <ArticleHeader></ArticleHeader>
      </div>
      <div slot="main">
        <ArticleMain></ArticleMain>
      </div>
    </Body>
  </div>
</template>

<script>
export default {
  components: {
    Body: () => import("../components/Body.vue"),
    ArticleHeader: () => import("./Article/ArticleHeader.vue"),
    ArticleMain: () => import("./Article/ArticleMain.vue"),
  },
  created() {
    let un = localStorage.getItem("un");
    if (!un) {
      this.$router.push("/login");
    }
  },
};
</script>

<style lang="less" scoped>
</style>